package net.pimpas.report.processor.condition;

import net.pimpas.report.processor.common.AbstractCommonProcessor;
import net.pimpas.report.processor.exception.ConditionException;
import net.pimpas.report.processor.field.Field;
import net.pimpas.report.processor.resolver.FieldPropertyResolver;

import org.hibernate.criterion.Criterion;

public abstract class AbstractCondition extends AbstractCommonProcessor<ConditionType, Criterion, ConditionException> implements Condition {
	
	public AbstractCondition(Field field, ConditionType type) {
		super(field, type);
	}

	public abstract Criterion process(String fieldAlias, FieldPropertyResolver resolver) throws ConditionException;
}